/**********************************************************************
 * LeechCraft - modular cross-platform feature rich internet client.
 * Copyright (C) 2006-2014  Georg Rudoy
 *
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
 **********************************************************************/

#include "fradj.h"
#include <util/core/util.h>
#include "eq10bandeffect.h"

namespace SailmiPIM
{
namespace Plugin::MultiPlayer
{
namespace Fradj
{
	void Plugin::Init (ICoreProxy_ptr)
	{
		Util::InstallTranslator ("smp_fradj");
	}

	void Plugin::SecondInit ()
	{
	}

	void Plugin::Release ()
	{
	}

	QByteArray Plugin::GetUniqueID () const
	{
		return "com.sailmi.pim.plugin.MultiPlayer.Fradj";
	}

	QString Plugin::GetName () const
	{
        return "SMP FrAdj";
	}

	QString Plugin::GetInfo () const
	{
        return tr ("Configurable equalizer effect for SMP.");
	}

	QIcon Plugin::GetIcon () const
	{
		return {};
	}

	QSet<QByteArray> Plugin::GetPluginClasses () const
	{
		QSet<QByteArray> result;
		result << "com.sailmi.pim.plugin.MultiPlayer.FiltersProvider";
		return result;
	}

	void Plugin::SetMultiPlayerProxy (IMultiPlayerProxy_ptr)
	{
	}

	QList<EffectInfo> Plugin::GetEffects () const
	{
		return
		{
			{
				GetUniqueID () + ".10Band",
				tr ("10-band equalizer"),
				{},
				true,
				[this] (const QByteArray&, IPath*) -> IFilterElement*
				{
					return new Eq10BandEffect { GetUniqueID () + ".10Band" };
				}
			}
		};
	}
}
}
}

SAILMIPIM_EXPORT_PLUGIN (sailmipim_smp_httstream, SailmiPIM::Plugin::MultiPlayer::Fradj::Plugin);
